<template>
  <div>
    <div style="text-align: right;margin-bottom: 10px; color: #4a4c4e;">
      <span>单位 : 元</span>
    </div>
    <table class="table" width="100%" cellspacing="0">
      <thead class="header">
      <th>项目</th>
      <th>营业至今累计数</th>
      <th>本年累计数</th>
      <th>本期数</th>
      </thead>
      <tbody class="body" v-if="Object.keys(data).length">
      <tr>
        <td>一、营业收入</td>
        <td>{{ data.this_new.business_income }}</td>
        <td>{{ data.this_year.business_income }}</td>
        <td>{{ data.this_month.business_income }}</td>
      </tr>
      <tr>
        <td>减：营业成本</td>
        <td>{{ data.this_new.operating_cost }}</td>
        <td>{{ data.this_year.operating_cost }}</td>
        <td>{{ data.this_month.operating_cost }}</td>
      </tr>
      <tr>
        <td>税金及附加</td>
        <td>{{ data.this_new.taxes_and_surcharges }}</td>
        <td>{{ data.this_year.taxes_and_surcharges }}</td>
        <td>{{ data.this_month.taxes_and_surcharges }}</td>
      </tr>
      <tr>
        <td>营业费用</td>
        <td>{{ data.this_new.selling_expenses }}</td>
        <td>{{ data.this_year.selling_expenses }}</td>
        <td>{{ data.this_month.selling_expenses }}</td>
      </tr>
      <tr>
        <td>管理费用</td>
        <td>{{ data.this_new.management_expenses }}</td>
        <td>{{ data.this_year.management_expenses }}</td>
        <td>{{ data.this_month.management_expenses }}</td>
      </tr>
      <tr>
        <td>财务费用</td>
        <td>{{ data.this_new.financial_expenses }}</td>
        <td>{{ data.this_year.financial_expenses }}</td>
        <td>{{ data.this_month.financial_expenses }}</td>
      </tr>
      <tr>
        <td>资产减值损失</td>
        <td>{{ data.this_new.assets_impairment_loss }}</td>
        <td>{{ data.this_year.assets_impairment_loss }}</td>
        <td>{{ data.this_month.assets_impairment_loss }}</td>
      </tr>
      <tr>
        <td>加：投资收益（损失以“-”号填列）</td>
        <td>{{ data.this_new.income_from_investment }}</td>
        <td>{{ data.this_year.income_from_investment }}
        <td>{{ data.this_month.income_from_investment }}</td>
      </tr>
      <tr>
        <td>公允价值变动收益（损失以“-”号填列）</td>
        <td>{{ data.this_new.income_from_changes_in_fair_value }}</td>
        <td>{{ data.this_year.income_from_changes_in_fair_value }}</td>
        <td>{{ data.this_month.income_from_changes_in_fair_value }}</td>
      </tr>
      <tr>
        <td>其他收益</td>
        <td>{{ data.this_new.other_income }}</td>
        <td>{{ data.this_year.other_income }}</td>
        <td>{{ data.this_month.other_income }}</td>
      </tr>
      <tr>
        <td>二、营业利润（亏损以“-”号填列）</td>
        <td>{{ data.this_new.operating_profit }}</td>
        <td>{{ data.this_year.operating_profit }}</td>
        <td>{{ data.this_month.operating_profit }}</td>
      </tr>
      <tr>
        <td>加：营业外收入</td>
        <td>{{ data.this_new.non_operating_income }}</td>
        <td>{{ data.this_year.non_operating_income }}</td>
        <td>{{ data.this_month.non_operating_income }}</td>
      </tr>
      <tr>
        <td>减：营业外支出</td>
        <td>{{ data.this_new.non_operating_expenses }}</td>
        <td>{{ data.this_year.non_operating_expenses }}</td>
        <td>{{ data.this_month.non_operating_expenses }}</td>
      </tr>
      <tr>
        <td>三、利润总额（亏损以“-”号填列）</td>
        <td>{{ data.this_new.total_profit }}</td>
        <td>{{ data.this_year.total_profit }}</td>
        <td>{{ data.this_month.total_profit }}</td>
      </tr>
      <tr>
        <td>减：所得税</td>
        <td>{{ data.this_new.income_tax }}</td>
        <td>{{ data.this_year.income_tax }}</td>
        <td>{{ data.this_month.income_tax }}</td>
      </tr>
      <tr>
        <td>四、净利润（净亏损以“-”号填列）</td>
        <td>{{ data.this_new.net_profit }}</td>
        <td>{{ data.this_year.net_profit }}</td>
        <td>{{ data.this_month.net_profit }}</td>
      </tr>
      <tr>
        <td>五、其他综合收益各项目分别扣除所得税影响后的净额</td>
        <td>{{ data.this_new.other_net_profit_net }}</td>
        <td>{{ data.this_year.other_net_profit_net }}</td>
        <td>{{ data.this_month.other_net_profit_net }}</td>
      </tr>
      <tr>
        <td>六、综合收益总额</td>
        <td>{{ data.this_new.total_comprehensive_income }}</td>
        <td>{{ data.this_year.total_comprehensive_income }}</td>
        <td>{{ data.this_month.total_comprehensive_income }}</td>
      </tr>
      </tbody>
      <tr v-else class="no_data">
        <td colspan="4">
          你想要的正在来的路上...
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "IncomeTable",
  props: {
    data: {
      type: Object,
      default: () => {
      }
    }
  },
}
</script>
<style scoped>

</style>
